// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** 此处后端没有提供注释 POST /oauth2/bind */
export async function bindAndLogin(
  body: UserService.BindAndLoginDTO,
  options?: { [key: string]: any }
) {
  return request<UserService.ResultLoginVO>(`/user/oauth2/bind`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /oauth2/login */
export async function loginByThird(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: UserService.loginByThirdParams,
  options?: { [key: string]: any }
) {
  return request<UserService.ResultLoginVO>(`/user/oauth2/login`, {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
